<?php
class Options {
	function init() {
		if (is_admin()) {
			add_action('admin_menu', array(&$this, 'menu'));
			Theme::install();
		}	
			
			if ($_GET['page'] == 'theme-options' && isset($_POST['uninstall']))
				Theme::uninstall();
	}

	function menu() {
		add_theme_page('Theme Options', 'Theme Options', 'edit_themes', 'theme-options', array(&$this, 'theme_options'));
	}

	function theme_options() {
		include(TEMPLATEPATH . '/app/display/options.php');
	}

}

$Options = new Options();
$Options->init();
?>